package com.puhui.lib.http.retrofit

import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.*

interface BaseServiceApi {

    @GET
    operator fun get(@Url url: String): Observable<String>

    @GET
    operator fun get(@Url url: String, @QueryMap parameter: Map<String, Any>): Observable<String>

    @POST
    fun post(@Url url: String, @FieldMap parameter: Map<String, Any>): Observable<String>

    @POST
    fun post(@Url url: String): Observable<String>

    @POST
    fun post(@Url url: String, @Body requestBody: RequestBody): Observable<String>

}